package com.lst.api.service;

import com.lst.api.vo.AddressCodeToValueVo;
import com.lst.api.vo.AddressVo;
import com.lst.tools.basics.function.OneParamReturnVoidFunction;

import java.util.List;

/**
 * 地址信息业务层
 *
 * @author: Frank
 * @date: 2019/9/29 14:22
 * @version: V1.0
 */
public interface IAddressService {

    /**
     * 获取全部地址信息
     *
     * @return
     */
    List<AddressVo> listAll();

    /**
     * 回显值
     *
     * @param addressCodeToValueVo
     */
    void customValueByCode(AddressCodeToValueVo addressCodeToValueVo);

    /**
     * 回显值
     *
     * @param provinceCode
     * @param cityCode
     * @param areaCode
     * @param fun
     */
    void customValueByCode(String provinceCode, String cityCode, String areaCode, OneParamReturnVoidFunction<AddressCodeToValueVo> fun);
}
